package com.offcn.service;

import com.offcn.entity.Paging;
import com.offcn.entity.User;

import java.sql.SQLException;
import java.util.List;

public interface UserService {
    //登录的方法声明
    User login(String userName, String password) throws SQLException;
    //查询总条数方法的声明
    int queryTotalCount(String usernameSearch) throws SQLException;
    //查询并分页展示方法的声明
    List<User> findUserByPage(Paging page, String usernameSearch) throws SQLException;
    //修改用户信息的方法声明
    int modifyUser(User user) throws SQLException;

    /*int DeleteAccordingSelection(String[] delarr) throws SQLException;*/
    int DeleteAccordingSelection(String delarr) throws SQLException;
    //新增用户
    int addUser(User user) throws SQLException;
}
